package com.yn.common.request.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "车队账单对象", description = "车队账单相关信息")
public class CarBillRequest {

    @ApiModelProperty(value = "车队id")
    @NotNull(message = "车队id不能为空")
    private Integer carFleetId;

    @ApiModelProperty(value = "转账记录图片")
    @NotNull(message = "转账记录图片不能为空")
    @Size(max = 255, message = "转账记录图片路径长度不能超过255") 
    private String transferRecordImage;

    @ApiModelProperty(value = "转账方式（如 wx-微信支付，alipay-支付宝支付；xianjin现金  这里需补充完整说明 ）")
    @NotNull(message = "转账方式不能为空")
    private Integer transferMethod;

    @ApiModelProperty(value = "转账金额")
    @NotNull(message = "转账金额不能为空")
    private BigDecimal transferAmount;

    @ApiModelProperty(value = "转账时间")
    @NotNull(message = "转账时间不能为空")
    private Date transferTime;


    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注长度不能超过255") 
    private String mark;
}